# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=rcon-cli
pkgver=1.6.2
pkgrel=6
pkgdesc="A little RCON cli based on james4k's RCON library for golang"
url="https://github.com/itzg/rcon-cli"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/itzg/rcon-cli/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests

build() {
	go build .
}

package() {
	install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin/
}

sha512sums="
4dd03870b134228008b4fba2363fd159992e9c8fea8d912f8c953977fe4f2a9d8afd2d5a7eade9606f6e41ce95e9c0384cc2a12517cda7291b60ecaddc763f80  rcon-cli-1.6.2.tar.gz
"
